Tables [dbo].[Component_Interest_Category]
Properties
PropertyValue
Created10:31:17 AM Tuesday, March 02, 2010
Last Modified11:40:01 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_Component_Interest_Category: ComponentCode\InterestCategoryID\ComponentIDForeign Keys FK_ComponentIntCat_Comp: [dbo].[Component_Ref].ComponentCodeIndexes ix_Component_Interest_Category: ComponentCodeComponentCodechar(2)2
No
Cluster Primary Key PK_Component_Interest_Category: ComponentCode\InterestCategoryID\ComponentIDForeign Keys FK_ComponentIntCat_IntCat: [dbo].[Interest_Category].InterestCategoryIDIndexes ix_Component_Interest_Category_1: InterestCategoryIDInterestCategoryIDnumeric(18,0)9
No
Cluster Primary Key PK_Component_Interest_Category: ComponentCode\InterestCategoryID\ComponentIDComponentIDnumeric(18,0)9
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_Component_Interest_Category: ComponentCode\InterestCategoryID\ComponentIDPK_Component_Interest_CategoryComponentCode, InterestCategoryID, ComponentID
Yes
ix_Component_Interest_CategoryComponentCode
ix_Component_Interest_Category_1InterestCategoryID
Foreign Keys Foreign Keys
NameColumns
FK_ComponentIntCat_CompComponentCode->[dbo].[Component_Ref].[ComponentCode]
FK_ComponentIntCat_IntCatInterestCategoryID->[dbo].[Interest_Category].[InterestCategoryID]
Permissions
TypeActionOwning Principal
GrantDeleteIMIS
GrantInsertIMIS
GrantReferencesIMIS
GrantSelectIMIS
GrantUpdateIMIS
SQL Script
CREATE TABLE [dbo].[Component_Interest_Category]
(
[ComponentCode] [char] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[InterestCategoryID] [numeric] (18, 0) NOT NULL,
[ComponentID] [numeric] (18, 0) NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[Component_Interest_Category] ADD CONSTRAINT [PK_Component_Interest_Category] PRIMARY KEY CLUSTERED ([ComponentCode], [InterestCategoryID], [ComponentID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_Component_Interest_Category] ON [dbo].[Component_Interest_Category] ([ComponentCode]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [ix_Component_Interest_Category_1] ON [dbo].[Component_Interest_Category] ([InterestCategoryID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Component_Interest_Category] ADD CONSTRAINT [FK_ComponentIntCat_Comp] FOREIGN KEY ([ComponentCode]) REFERENCES [dbo].[Component_Ref] ([ComponentCode])
GO
ALTER TABLE [dbo].[Component_Interest_Category] ADD CONSTRAINT [FK_ComponentIntCat_IntCat] FOREIGN KEY ([InterestCategoryID]) REFERENCES [dbo].[Interest_Category] ([InterestCategoryID])
GO
GRANT REFERENCES ON  [dbo].[Component_Interest_Category] TO [IMIS]
GRANT SELECT ON  [dbo].[Component_Interest_Category] TO [IMIS]
GRANT INSERT ON  [dbo].[Component_Interest_Category] TO [IMIS]
GRANT DELETE ON  [dbo].[Component_Interest_Category] TO [IMIS]
GRANT UPDATE ON  [dbo].[Component_Interest_Category] TO [IMIS]
GO
Uses
Used By